package com.zjw.util

import java.security.MessageDigest

object MD5Util {
  def string2md5(srcStr: String): String = {
    MessageDigest.getInstance("MD5")
      .digest(srcStr.getBytes("UTF-8"))
      .map("%02x".format(_)).mkString
  }
}
